#ifndef HELPINFODALOG_H
#define HELPINFODALOG_H


#include <QtGui>

#if (QT_VERSION >= 0x050000)
#include <QtWidgets>
#include <QtWebKit/QtWebKit>
#include <QtWebKitWidgets/QtWebKitWidgets>
#else
#include <QtWebKit>
#include <QWebView>
#endif

#include "widget.h"
#include "config.h"



namespace Ui {
    class HelpInfoDalog;
}





class HelpInfoDialog : public QDialog
{
    Q_OBJECT

private:
    QString m_docPath;
    QTextDocument* m_doc;
    QWebView* m_webView;


public:
    explicit HelpInfoDialog(CenteredWidget *parent = 0);
    ~HelpInfoDialog();
    void setPage (int page);
    void setVersion (const QString& version);

protected:
    void changeEvent (QEvent *event);

private slots:
    void on_aboutQt_clicked();

    void on_listVersions_clicked();

private:
    Ui::HelpInfoDalog *ui;
};

#endif // HELPINFODALOG_H
